import React, { Component } from 'react';

class App extends Component {
  render() {
    return (
      <div>
        <ChildCpn name="why" age="18" height="1.88"></ChildCpn>
        <ChildCpn name="kobe" age="40" height="1.98"></ChildCpn>

      </div>
    );
  }
}


function ChildCpn(props) {
  const { name, age, height } = props

  return (
    <div>
      <h2>{name + " " + age + " " + height}</h2>
    </div>
  )
}


export default App